﻿namespace Unity.Tools
{
    using System;
    using System.ComponentModel;
    using System.Globalization;

    class HttpContextLifetimeManagerConverter : TypeConverter
    {
        public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            return new HttpContextLifetimeManager(value as String);
        }
    }
}
